<!DOCTYPE html>
<!-- 1、删除下面的“PHP 3班”和“美工 3班”节点。 -->
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function deleteOne() {
		var aNode = document.getElementById("myDiv3");
		var aParentNode = aNode.parentNode;
		aParentNode.removeChild(aNode);
	}
	function deleteTwo() {
		var aNodeOne = document.getElementById("myDiv6");
		var aParentNode = aNodeOne.parentNode;
		aParentNode.removeChild(aNodeOne);
	}
</script>
</head>
<body>

	<div id="myDiv1">PHP1班</div>
	<div id="myDiv2">PHP2班</div>
	<div id="myDiv3">PHP3班</div>
	<div id="myDiv4">美工1班</div>
	<div id="myDiv5">美工2班</div>
	<div id="myDiv6">美工3班</div>
	<input type="button" value="删除 PHP3班" onclick="deleteOne()">
	<input type="button" value="删除美工3班" onclick="deleteTwo()">
</body>
</html>